@charset "utf-8";

// 清除bootstrap默认设置下划线的样式
a{
  &:hover{
    text-decoration: none;
  }
}

.mz-index-header2{
  .mz-topbar{
    min-width: 1200px;
    height: 81px;
    .mz-logo{
      svg{
        vertical-align: -3px;
      }
    }
    .mz-nav{
      line-height: 81px;
      li{
        a{
          display: block;
          height: 81px;
          color: #515151;
          font-size: 14px;
        }
        &:hover a{
          color: #008cff;
        }
      }
    }
    .mz-search{
      width: 170px;
      height: 30px;
      border: 1px solid rgba(0,0,0,.15);
      border-radius: 20px;
      overflow: hidden;
      input{
        font-size: 10px;
        outline: none;
      }
      a{
        color: #515151;
        vertical-align: middle;
        i{
          font-size: 20px;
        }
      } 
    }
    .mz{
      position: relative;
      img{
        width: 29px;
        height: 29px;
      }
      span{
        position: absolute;
        top: 16px;
        right: -5px;
        width: 15px;
        height: 15px;
        font-size: 12px;
        border-radius: 50%;
      }
    }
    .mz-login{
      padding: 20px 0;
      .mz-login-list{
        display: none;
        margin-top: 15px;
        padding: 6px 0;
        position: absolute;
        left: -34px;
        top: 45px;
        width: 96px;
        border: 1px solid #efefef;
        border-radius: 3px;
        background-color: #fff;
        li{
          padding: 0 10px;
          height: 33px;
          line-height: 33px;
          a{
            color: #666;
            font-size: 12px;
          }
          // &:hover{
          //   background-color: #ccc;
          // }
        }
        &::before{
          content: "";
          position: absolute;
          left: 0;
          right: 0;
          top: -6px;
          margin: auto;
          width: 10px;
          height: 10px;
          border-top: 1px solid #efefef;
          border-left: 1px solid #efefef;
          background-color: #fff;
          transform: rotate(45deg);
        }
      }
      &:hover ul{
        display: block;
        z-index: 10;
      }
    }
    .mz-shopcar{
      padding: 20px 0;
      .mz-shopcar-list{
        display: none;
        position: absolute;
        right: -10px;
        top: 60px;
        width: 320px;
        height: 120px;
        border: 1px solid #efefef;
        border-radius: 3px;
        background-color: #fff;
        &::before{
          content: "";
          position: absolute;
          right: 16px;
          top: -6px;
          width: 10px;
          height: 10px;
          border-top: 1px solid #efefef;
          border-left: 1px solid #efefef;
          background-color: #fff;
          transform: rotate(45deg);
        }
      }
      &:hover ul{
        display: block;
        z-index: 10;
      }
    }
  }
  .mz-nav-menu{
    position: absolute;
    width: 100%;
    height: 168px;
    .mz-menu{
      position: relative;
      &>ul{
        display: none!important;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        background-color: #fff;
        z-index: 10;
        li{
          width: 138.75px;
          flex: 0 0 auto!important;
          img{
            width: 123px;
          }
          .mz-info,.mz-price{
            color: #333;
            font-size: 12px;
          }
          .mz-info{
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
          &:hover img,&:hover p{
            filter: opacity(100%);
          }
        }
      }
      .mz-app-drop{
          display: none;
          height: 320px;
          background-color: #fff;
          z-index: 10;
          img{
            width: 1240px;
            position: absolute;
            left: 0;
            right: 0;
            margin: auto;
          };
      }
      &>.current{
        display: flex!important;
      }
      &:hover img,&:hover p{
        filter: opacity(60%);
      }
    }
  }
}
